import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Home',
      redirect: "/index",
      component: () => import('@/views/Home.vue'),
      children: [
        {
          path: 'index',
          name: 'index',
          component: () => import('@/views/index.vue'),
        },
        {
          path: 'commonProblem',
          name: 'commonProblem',
          component: () => import('@/views/commonProblem/index.vue'),
        },
        {
          path: 'content',
          name: 'content',
          component: () => import('@/views/commonProblem/content.vue'),
        },
        // 跨境驿
        {
          path: 'crossBorder',
          name: 'crossBorder',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 8,
            auth: true,
          },
          component: () => import('@/views/kuaJing/crossBorder.vue'),
        },
        {
          path: 'enquiry',
          name: 'enquiry',
          redirect: "/enquiryApply1",
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 10,
            auth: true,
          },
          component: () => import('@/views/shangPiao/enquiry.vue'),
          children: [
            {
              path: '/enquiryApply1',
              name: 'enquiryApply1',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/shangPiao/enquiryApply1.vue'),
            },
            {
              path: '/enquiryApply2',
              name: 'enquiryApply2',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/shangPiao/enquiryApply2.vue'),
            },
            {
              path: '/enquiryApply3',
              name: 'enquiryApply3',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 6,
                auth: true,
              },
              component: () => import('@/views/shangPiao/enquiryApply3.vue'),
            },
            {
              path: '/enquiryPledgeApply',
              name: 'enquiryPledgeApply',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 6,
                auth: true,
              },
              component: () => import('@/views/shangPiao/enquiryPledgeApply.vue'),
            },
            {
              path: '/ShangPiaoCkBlRzRZ',
              name: 'ShangPiaoCkBlRzRZ',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 6,
                auth: true,
              },
              component: () => import('@/views/shangPiao/factorageFinancing/ShangPiaoCkBlRzRZ.vue'),
            },

          ],
        },
        // 出口保理融资
        {
          path: 'ckblrz',
          name: 'ckblrz',
          redirect: "/ckblrz1",
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 10,
            auth: true,
          },
          component: () => import('@/views/shangPiao/factorageFinancing/ckblrz.vue'),
          children: [
            {
              path: '/ckblrz1',
              name: 'ckblrz1',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/shangPiao/factorageFinancing/ckblrz1.vue'),
            },
            {
              path: '/ckblrz2',
              name: 'ckblrz2',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/shangPiao/factorageFinancing/ckblrz2.vue'),
            },
            {
              path: '/ckblrz3',
              name: 'ckblrz3',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/shangPiao/factorageFinancing/ckblrz3.vue'),
            },
            {
              path: '/ckblrz4',
              name: 'ckblrz4',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/shangPiao/factorageFinancing/ckblrz4.vue'),
            },
          ]
        },

        // 跨境关税保函产品申请
        {
          path: 'gsbhApplication',
          name: 'gsbhApplication',
          redirect: "/gsbhApply1",
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 8,
            auth: true,
          },
          component: () => import('@/views/kuaJing/guanshuibaohan/gsbhApplication.vue'),
          children: [
            {
              path: '/gsbhApply1',
              name: 'gsbhApply1',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaohan/gsbhApply1.vue'),
            },
            // 关税保函确认授信申请
            {
              path: '/creditExtension',
              name: 'creditExtension',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 9,
                auth: true,
              },
              component: () => import('@/views/project/projectKuaJing/creditExtension.vue'),
            },
            {
              path: '/gsbhApply2',
              name: 'gsbhApply2',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaohan/gsbhApply2.vue'),
            },
            {
              path: '/gsbhApply3',
              name: 'gsbhApply3',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaohan/gsbhApply3.vue'),
            },
            {
              path: '/gsbhApply4',
              name: 'gsbhApply4',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaohan/gsbhApply4.vue'),
            },
            {
              path: '/gsbhysxApply',
              name: '关税保函预授信',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaohan/ysx/gsbhysxApply.vue'),
            },
            {
              path: '/gsbhysxApply1',
              name: '关税保函预授信信息填写',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaohan/ysx/gsbhysxApply1.vue'),
            },
            {
              path: '/gsbhysxApply2',
              name: '关税保函预授信信息填写成功',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaohan/ysx/gsbhysxApply2.vue'),

            }

          ],
        },
        // 跨境关税E保产品申请
        {
          path: 'borderApplication',
          name: 'borderApplication',
          redirect: "/crossBorderApply1",
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 8,
            auth: true,
          },
          component: () => import('@/views/kuaJing/gseb/ysx/BorderApplication.vue'),
          children: [
            {
              path: '/crossBorderApply1',
              name: 'crossBorderApply1',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/ysx/crossBorderApply1.vue'),
            },
            {
              path: '/crossBorderApply2',
              name: 'crossBorderApply2',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/ysx/crossBorderApply2.vue'),
            },
            {
              path: '/gsebrz',
              name: '关税E保认证',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/ysx/gsebrz.vue'),
            },
            {
              path: '/gsebzsApply1',
              name: '关税E保正式申请',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/zs/gsebzsApply1.vue'),
            },
            {
              path: '/gsebzsApply2',
              name: '关税E保正式申请2',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/zs/gsebzsApply2.vue'),
            },
            {
              path: '/gsebzsApply3',
              name: '关税E保正式申请3',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/zs/gsebzsApply3.vue'),
            },
            {
              path: '/gsebzsApply4',
              name: '关税E保正式申请4',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/zs/gsebzsApply4.vue'),
            },
            {
              path: '/gsebzsApply5',
              name: '关税E保正式申请5',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/zs/gsebzsApply5.vue'),
            },
            {
              path: '/yxApply',
              name: '用信申请',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/yx/yxApply.vue'),
            },
            {
              path: '/yxSubmit',
              name: '用信申请提交完成',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/gseb/yx/yxSubmit.vue'),
            },
          ],
        },
        // 跨境关税保证保险产品申请
        {
          path: 'gsbzbxApplication',
          name: 'gsbzbxApplication',
          redirect: "/gsbzbxApply1",
          meta: {
            title: "数字金融服务平台-商驿科技",
            index: 8,
            auth: true,
          },
          component: () => import('@/views/kuaJing/guanshuibaozheng/gsbzbxApplication.vue'),
          children: [
            {
              path: '/gsbzbxApply1',
              name: 'gsbzbxApply1',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaozheng/gsbzbxApply1.vue'),
            },
            {
              path: '/gsbzbxApply2',
              name: 'gsbzbxApply2',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaozheng/gsbzbxApply2.vue'),
            },
            {
              path: '/gsbzbxApply3',
              name: 'gsbzbxApply3',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaozheng/gsbzbxApply3.vue'),
            },
            {
              path: '/gsbzbxRz',
              name: '关税保证保险认证',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuibaozheng/gsbzbxRz.vue'),
            },

          ],
        },
        // 跨境税信保产品申请
        {
          path: 'sxbApplication',
          name: 'sxbApplication',
          redirect: "/sxbApply1",
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 8,
            auth: true,
          },
          component: () => import('@/views/kuaJing/shuixinbao/sxbApplication.vue'),
          children: [
            {
              path: '/sxbApply1',
              name: 'sxbApply1',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/kuaJing/shuixinbao/sxbApply1.vue'),
            },
            // 税信宝确认授信申请第一步
            {
              path: '/sxbCreditExtension',
              name: 'sxbCreditExtension',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 9,
                auth: true,
              },
              component: () => import('@/views/kuaJing/shuixinbao/sxbCreditExtension.vue'),
            },
            // 税信宝确认授信申请第二步
            {
              path: '/sxbCreditExtension2',
              name: 'sxbCreditExtension2',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 9,
                auth: true,
              },
              component: () => import('@/views/kuaJing/shuixinbao/sxbCreditExtension2.vue'),
            },
            // 税信宝确认授信申请第二步
            {
              path: '/sxbCreditExtension3',
              name: 'sxbCreditExtension3',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 9,
                auth: true,
              },
              component: () => import('@/views/kuaJing/shuixinbao/sxbCreditExtension3.vue'),
            },
            {
              path: '/sxbApply2',
              name: 'sxbApply12',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/shuixinbao/sxbApply2.vue'),
            },
            {
              path: '/FinancingType',
              name: '融资类产品',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/prefecture/FinancingType.vue'),
            },
            {
              path: '/NotFinancingType',
              name: '非融资类产品',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/prefecture/NotFinancingType.vue'),
            },
            {
              path: '/CyShuJuDai',
              name: '产业数字贷',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/prefecture/CyShuJuDai.vue'),
            },
            //产业数字贷，融资，非融资认证
            {
              path: '/prefectureRZ',
              name: '产业数字贷融资非融资认证',
              meta: {
                title: "湖北国际贸易数字化平台测试版",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/prefecture/prefectureRZ.vue'),
            },

          ],
        },
        // 跨境关税履约保证保险产品申请
        {
          path: 'gslybzbxApplication',
          name: 'gslybzbxApplication',
          redirect: "/gslybzbxApply1",
          meta: {
            title: "数字金融服务平台-商驿科技",
            index: 8,
            auth: true,
          },
          component: () => import('@/views/kuaJing/guanshuilvyuebaozheng/gslybzbxApplication.vue'),
          children: [
            {
              path: '/gslybzbxApply1',
              name: 'gslybzbxApply1',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 11,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuilvyuebaozheng/gslybzbxApply1.vue'),
            },
            {
              path: '/gslybzbxApply2',
              name: 'gslybzbxApply2',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuilvyuebaozheng/gslybzbxApply2.vue'),
            },
            {
              path: '/gslybzbxApply3',
              name: 'gslybzbxApply3',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuilvyuebaozheng/gslybzbxApply3.vue'),
            },
            {
              path: '/gslybzbxRz',
              name: '关税履约保证保险',
              meta: {
                title: "数字金融服务平台-商驿科技",
                index: 5,
                auth: true,
              },
              component: () => import('@/views/kuaJing/guanshuilvyuebaozheng/gslybzbxRz.vue'),
            },
          ],
        },

        {
          path: 'projectBusinessDetails',
          name: 'projectBusinessDetails',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 10,
            auth: true,
          },
          component: () => import('@/views/project/projectShangPiao/projectBusinessDetails.vue'),
        },
        {
          path: 'projectDiscountDetails',
          name: 'projectDiscountDetails',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 10,
            auth: true,
          },
          component: () => import('@/views/project/projectShangPiao/projectDiscountDetails.vue'),
        },
        {
          path: 'projectApproveEasypasteDetails',
          name: '商票易贴审批通过',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 10,
            auth: true,
          },
          component: () => import('@/views/project/projectShangPiao/projectApproveEasypasteDetails.vue'),
        },
        {
          path: 'projectPledgeApproveDetalis',
          name: '商票质押审批中',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 10,
            auth: true,
          },
          component: () => import('@/views/project/projectShangPiao/projectPledgeApproveDetalis.vue'),
        },
        {
          path: 'projectApprovePledgeDetails',
          name: '商票质押审批通过',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 10,
            auth: true,
          },
          component: () => import('@/views/project/projectShangPiao/projectApprovePledgeDetails.vue'),
        },

        // 跨境驿产品详情
        {
          path: '/projectCrossBorder',
          name: 'projectCrossBorder',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/projectCrossBorder.vue'),
        },
        // 关税E保产品预审详情
        {
          path: '/projectBorderDetails',
          name: 'projectBorderDetails',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/projectBorderDetails.vue'),
        },
        // 融资类详情
        {
          path: '/FinancingTypeDetails',
          name: 'FinancingTypeDetails',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/prefecture/FinancingTypeDetails.vue'),
        },
        // 非融资类详情
        {
          path: '/NotFinancingTypeDetails',
          name: 'NotFinancingTypeDetails',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/prefecture/NotFinancingTypeDetails.vue'),
        },
        // 产业数字贷产品详情
        {
          path: '/CyShuJuDaiDetails',
          name: '产业数字贷产品详情',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 5,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/prefecture/CyShuJuDaiDetails.vue'),
        },


        // 关税保函产品预审详情
        {
          path: '/projectBorderDetailsGsbh',
          name: 'projectBorderDetailsGsbh',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/projectBorderDetailsGsbh.vue'),
        },
        // 税信保产品预审详情
        {
          path: '/projectBorderDetailsSxb',
          name: 'projectBorderDetailsSxb',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/projectBorderDetailsSxb.vue'),
        },
        // 正式项目
        // 关税保函产品正式详情
        {
          path: '/regularProjectGsbh',
          name: 'regularProjectGsbh',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/regularProjectGsbh.vue'),
        },
        {
          path: '/yxApplyDetails',
          name: '用信项目详情',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/yxApplyDetails/yxApplyDetails.vue'),
        },
        // 关税E保产品正式详情
        {
          path: '/regularProjectGseb',
          name: 'regularProjectGseb',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/regularProjectGseb.vue'),
        },
        // 税信保产品正式详情
        {
          path: '/regularProjectSxb',
          name: 'regularProjectSxb',
          meta: {
            title: "湖北国际贸易数字化平台测试版",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/regularProjectSxb.vue'),
        },
        // 关税保证保险详情
        {
          path: '/projectGuaranteeDetails',
          name: 'projectGuaranteeDetails',
          meta: {
            title: "数字金融服务平台-商驿科技",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/projectGuaranteeDetails.vue'),
        },
        // 出口保理融资
        {
          path: '/projectBorderDetailsCkblrz',
          name: 'projectBorderDetailsCkblrz',
          meta: {
            title: "数字金融服务平台-商驿科技",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/projectBorderDetailsCkblrz.vue'),
        },
        // 关税履约保证保险
        {
          path: '/projectGuaranteeGslybzbx',
          name: 'projectGuaranteeGslybzbx',
          meta: {
            title: "数字金融服务平台-商驿科技",
            index: 9,
            auth: true,
          },
          component: () => import('@/views/project/projectKuaJing/projectGuaranteeGslybzbx.vue'),
        },
      ],
    },
    {
      path: '/initial',
      name: '等等',
      meta: {
        title: "湖北国际贸易数字化平台测试版",
        index: 14,
        auth: true,
      },
      component: () => import('@/views/result/initial.vue'),
    },
    {
      path: '/gain',
      name: '等一等',
      meta: {
        title: "湖北国际贸易数字化平台测试版",
        index: 14,
        auth: true,
      },
      component: () => import('@/views/result/gain.vue'),
    },

  ]
})

export default router
